OSDD::Application.routes.draw do
  ActiveAdmin.routes(self)

  devise_for :admin_users, ActiveAdmin::Devise.config

  root :to => redirect('/admin')
  
  match '/admin/scans' =>  'admin/scans#create'
  
  match '/admin/get_logs/:profile_id' => 'admin/logs#get_logs'
  
  match '/admin/set_result_as_false/:id' => 'admin/results#set_as_false'

  match '/admin/get_last_scan' => 'admin/scans#get_last_scan'
end
